import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class ManageExpenditure extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 803142815862433901L;
	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ManageExpenditure frame = new ManageExpenditure();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ManageExpenditure() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 500, 250);
		this.setTitle("Manage Expenditure");
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblDpssSystems = new JLabel("DPSS SYSTEMS - Expenditure Page");
		lblDpssSystems.setBounds(148, 21, 200, 14);
		contentPane.add(lblDpssSystems);
		
		JButton btnEnterIncome = new JButton("Enter Expenditure");
		btnEnterIncome.setBounds(26, 73, 210, 23);
		contentPane.add(btnEnterIncome);
		btnEnterIncome.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				dispose();
				EnterExpenditure page = new EnterExpenditure();
				page.setVisible(true);
			}
		});
		
		JButton btnManageIncomeCategory = new JButton("Manage Expenditure Category");
		btnManageIncomeCategory.setBounds(26, 116, 210, 23);
		contentPane.add(btnManageIncomeCategory);
		
		JButton btnSearchIncome = new JButton("Search Expenditure");
		btnSearchIncome.setBounds(255, 73, 210, 23);
		contentPane.add(btnSearchIncome);
		
		JButton btnVieweditIncome = new JButton("View/Edit Expenditure");
		btnVieweditIncome.setBounds(255, 116, 210, 23);
		contentPane.add(btnVieweditIncome);
		
		JButton btnBackToMain = new JButton("Back to Main Menu");
		btnBackToMain.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				dispose();
				MainMenu page = new MainMenu();
				page.setVisible(true);
			}
		});
		btnBackToMain.setBounds(174, 158, 145, 23);
		contentPane.add(btnBackToMain);
	}

}